package com.ruoyi.client.mapper;

import com.ruoyi.client.domain.Commission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommissionMapper {
    Commission getCommissionBySymbolAndPrice(@Param("symbol") String symbol,@Param("commissionPrice") String buyPrice,@Param("id") Integer id);

    void add(Commission commission);

    void updateNumById(@Param("num") Integer num,@Param("id") Integer id);

    Commission getCommissionBySymbolAndPriceSell(@Param("symbol") String symbol,@Param("commissionPrice") String buyPrice,@Param("id") Integer id);

    List<Commission> entrustAllList(Long userId);

}
